<ion-modal-view>
    <ion-header-bar class="bar bar-header bar-positive">
        <!-- Issue: can not rollback to origin list after alter-->
        <!--         <button class="button button-icon icon ion-ios7-arrow-back" ng-click="cancelMofifyToolkits()">取消</button> -->
        <h1 class="title">{{'repair_toolkits'|i18ng}}</h1>
        <button class="button button-icon icon ion-ios7-plus-empty" ng-click="addNewToolkit()">{{'add'|i18ng}}</button>
    </ion-header-bar>
    <ion-content>
        <ion-list>
            <ion-item class="item-icon-left calm" ng-if="data.insp.eam_maintain_toolkits.length === 0">
                <i class="icon ion-ios7-filing-outline"></i>
                <span>{{'no_records'|i18ng}}</span>
            </ion-item>
            <ion-item class="item-icon-left item-icon-right" ng-repeat="item in data.insp.eam_maintain_toolkits">
                <i class="icon ion-ios7-minus-outline" ng-click="countMinus(item)"></i>
                <span>
                  <span>{{item.name}}</span>
                <span>{{'count'|i18ng}} {{item.count}}</span>
                </span>
                <i class="icon ion-ios7-plus-outline" ng-click="countPlus(item)"></i>
            </ion-item>
        </ion-list>
        <div class="padding">
            <button class="button button-block button-assertive" ng-click="ModifyToolkitsModal.hide()">{{'done_text'|i18ng}}</button>
        </div>
    </ion-content>
</ion-modal-view>
